package com.niubility.server;

import com.niubility.entity.Pwd;

import java.util.List;

public interface IPwdService {

    //加载所有用户
    public List<Pwd> LoadAll();

    //通过Id查询某一个用户的密码
    public Pwd LoadById(Integer userId);

    //添加用户
    public boolean Save(Pwd pwd);

    //用用户id删除用户
    public boolean Delete(Integer userId);

    //通过id数组删除用户
    public boolean deleteUserByIds(Integer[] userIds);

    //更新用户信息
    public boolean Update(Pwd pwd);

    //SHA1密码加密
    public String CipherEncryptionBySHA1(String pwd, String userTel);


    //MD5密码加密
    public String CipherEncryptionByMD5(String pwd, String userTel);


    //用于通过的社团加入密码表
    public boolean DepRig(Pwd pwd, String depTel);
}
